-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move the HIR CFG to rustc_ast_borrowck
#64231
Conversation
No new code should be using it.
r? @zackmdavis (rust_highfive has picked a reviewer for you, use r? to override) |
📌 Commit 10f46b6 has been approved by |
Move the HIR CFG to `rustc_ast_borrowck` No new code should be using it.
Rollup of 10 pull requests Successful merges: - #63919 (Use hygiene for AST passes) - #63927 (Filter linkcheck spurious failure) - #64149 (rustc_codegen_llvm: give names to non-alloca variable values.) - #64192 (Bail out when encountering likely missing turbofish in parser) - #64231 (Move the HIR CFG to `rustc_ast_borrowck`) - #64233 (Correct pluralisation of various diagnostic messages) - #64236 (reduce visibility) - #64240 (Include compiler-rt in the source tarball) - #64241 ([doc] Added more prereqs and note about default directory) - #64243 (Move injection of attributes from command line to `libsyntax_ext`) Failed merges: r? @ghost
So...how do we access |
Probably just add % cargo check --all --all-targets --
Compiling clippy-mini-macro-test v0.2.0 (/home/lzutao/forked/rust/clippy/mini-macro)
Compiling clippy_lints v0.0.212 (/home/lzutao/forked/rust/clippy/clippy_lints)
error[E0616]: field `graph` of struct `rustc_ast_borrowck::cfg::CFG` is private
--> clippy_lints/src/cognitive_complexity.rs:51:17
|
51 | let n = cfg.graph.len_nodes() as u64;
| ^^^^^^^^^
error[E0616]: field `graph` of struct `rustc_ast_borrowck::cfg::CFG` is private
--> clippy_lints/src/cognitive_complexity.rs:52:17
|
52 | let e = cfg.graph.len_edges() as u64;
| ^^^^^^^^^ |
I'll open a PR to remove the use of |
No new code should be using it.